Contents | Index | < Browse | Browse >
LETTERfscanfULETTER
Reads formatted input.
Overview
#include <stdio.h>
r = fscanf(f,format, ...);
int r;
FILE *f;
const char *format;
Portability
ANSI
Description
This function reads formatted input from the file "f". The input format string
restricts the accepted input. It is followed by the pointers to the input
variables.
Returns
The number of converted values. If the input did not equal the format string
this number is smaller than the number of input variables specified.